@extends('layout.zhongxin')
@section('title', '评价页面')
@section('zhong')
<div style="margin-top: 20px;">
	<div style="margin-left:170px; height:43px; width:750px; background:#FF4400; font-size:30px; color:#ffffff;padding-top:15px; padding-left:20px;" >我要评价</div>
	<form action="/evaluate/insert" enctype="multipart/form-data" method="post" class="mws-form">
      @if (count($errors) > 0)
        <div class="mws-form-message error">
        添加失败
          <ul>
            @foreach ($errors->all() as $error)
              <li>评价不能为空</li>
            @endforeach
          </ul>
        </div>
      @endif
	    <br/>
      <br/>
      <br/>
  		<div class="form-group" style="position:relative;left:60px;">
    		<textarea class="form-control" rows="10" cols="80" style="border: ridge #FFFFFF;  font-size: 15px;" name="des"></textarea>
  		</div>
  		<br>
  		<br>
  		<br>
  		<div>
        <input type="hidden" name="id" value="{{$data['id']}}" >
  			<button type="submit" class="btn btn-primary" style="margin-left:280px;border: ridge #FFFFFF; width:150px; height:30px; background:#FFD235; font-size: 15px;color: #FFFFFF;">发表评价</button>
  		</div>
      {{csrf_field()}}
	</form>
@endsection
